package com.william.jdbcplus.core.parser;

/**
 * sql信息
 *
 * @author niliwei
 */
public class SqlInfo {
    private String sql;
    private boolean orderBy = true;

    public static SqlInfo newInstance() {
        return new SqlInfo();
    }

    public SqlInfo() {
    }

    public String getSql() {
        return this.sql;
    }

    public boolean isOrderBy() {
        return this.orderBy;
    }

    public SqlInfo setSql(final String sql) {
        this.sql = sql;
        return this;
    }

    public SqlInfo setOrderBy(final boolean orderBy) {
        this.orderBy = orderBy;
        return this;
    }

}
